package org.example.aop.controller;


import org.example.aop.config.MyAspect;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("text3")
public class TextController implements Interface1{
    @Override
    //使用自定义注解，会创建代理
    @MyAspect
    @RequestMapping("t1")
    public void text() {
        System.out.println("ccc");
    }
}
